package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.UserEcologyUsableAmountUpperLimitDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.UserEcologyUsableUpperLimitPageVO;
import com.sc.nft.entity.vo.ecology.AdminuserEcologyUsableAmountUpperLimitDetailPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * 生态-用户燃料可释放额度记录详情表(sc_user_ecology_usable_amount_upper_limit_detail)数据Mapper
 *
 * @author Sun
 * @since 2024-03-12 16:48:49
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserEcologyUsableAmountUpperLimitDetailMapper extends BaseMapper<UserEcologyUsableAmountUpperLimitDetail> {

    /**
     * 用户生态可释放额度分页
     * @param page
     * @param userId
     * @return
     */
    Page<UserEcologyUsableUpperLimitPageVO> userEcologyUsableUpperLimitPage(Page page, @Param("userId") Long userId);

    /**
     * 用户生态可释放额度详情分页
     * @param page
     * @param userId
     * @param startTime
     * @param endTime
     * @return
     */
    Page<AdminuserEcologyUsableAmountUpperLimitDetailPageVO> userEcologyUsableAmountUpperLimitDetailPage(Page page, @Param("userId") Long userId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
